<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:a4j="http://richfaces.org/a4j"
                 xmlns:rich="http://richfaces.org/rich">
    <h:head>
        <title>币种列表</title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <SCRIPT language="JavaScript">
            javascript:window.history.forward(1);
        </SCRIPT>
        <script language="javascript" type="text/javascript">
            function updateGroup(code,name){
                window.opener.updateCurrencyofGroup(code,name);
                window.close();
            }
        </script>
    </h:head>

    <h:form>
        <rich:panel header="币种列表">
            <rich:dataTable value="#{abroadGroupBean.currencyLi}" var="tl" id="back">
                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="币种代码"/>
                    </f:facet>
                    <h:commandLink id="employeeslink" onclick="updateGroup('#{tl.code}','#{tl.name}');">
                        <h:outputText value="#{tl.code}"/>
                    </h:commandLink>
                </rich:column>

                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="币种名称"/>
                    </f:facet>
                    <h:outputText value="#{tl.name}"/>
                </rich:column>

                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="符号"/>
                    </f:facet>
                    <h:outputText value="#{tl.sign}" rendered="#{tl.code !='ECU'}"/>
                    <h:outputText value="€"  rendered="#{tl.code =='ECU'}"/>
                </rich:column>

            </rich:dataTable>
        </rich:panel>

    </h:form>

</ui:composition>